package top.healthylife.gateway.platform.eye.dto.shangshixinxi.EyeReqShareholderDto.req;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import top.healthylife.gateway.dto.annotation.ApiField;
import top.healthylife.gateway.dto.processor.GroupOneMustBeFilledInProcessor;
import top.healthylife.gateway.dto.request.req.ApiReqDto;

import javax.validation.constraints.NotNull;

/**
* @author: GenUtil
* @date: 2020-12-11 23:39:03
*/
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@ApiModel("十大股东（十大流通股东）[859]")
public class EyeReqShareholderDto extends ApiReqDto {

    @ApiField("时间")
    @JsonProperty("time")
    @ApiModelProperty(value = "时间", example = "2020-03-31")
    private String time;

    @ApiField(value = "（id、name、统一信用代码，只需输入其中一个）", group = GroupOneMustBeFilledInProcessor.class)
    @NotNull(message = "（id、name、统一信用代码，只需输入其中一个）")
    @JsonProperty("keyword")
    @ApiModelProperty(value = "（id、name、统一信用代码，只需输入其中一个）", example = "485568977")
     private String keyword;

    @ApiField(value = "公司名称，可通过查询接口获取", group = GroupOneMustBeFilledInProcessor.class)
    @NotNull(message = "公司名称，可通过查询接口获取")
    @JsonProperty("name")
    @ApiModelProperty(value = "公司名称，可通过查询接口获取", example = "深圳市振业（集团）股份有限公司")
    private String name;

    @ApiField(value = "公司id，可通过查询接口获取", group = GroupOneMustBeFilledInProcessor.class)
    @NotNull(message = "公司id，可通过查询接口获取")
    @JsonProperty("id")
    @ApiModelProperty(value = "公司id，可通过查询接口获取", example = "485568977")
    private String id;



    @ApiField(value = "类型 1 十大股东 2 十大流通股东", necessity = true)
    @JsonProperty("type")
    @ApiModelProperty(value = "类型 1 十大股东 2 十大流通股东", example = "1")
    private Integer type;

}
